<!--获取链接参数 - 使用举例-->
<script setup lang="ts">
import { onMounted } from 'vue'
import { useUrlParamsStore } from '@/stores'

const urlParamsStore = useUrlParamsStore()

onMounted(() => {
  // 获取 URL 参数
  const params = urlParamsStore.getParamsFromUrl()
  console.log('URL 参数：', params)

  // 访问参数
  console.log('Token：', urlParamsStore.params.token)
  console.log('部门编号：', urlParamsStore.params.deptSn)
  console.log('编号：', urlParamsStore.params.number)
})
</script>
